.class public Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "MediaPickerActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;
.implements Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$b;
.implements Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;
.implements Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$g;,
        Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$f;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/base/BaseActivity;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;",
        "Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$b<",
        "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
        ">;",
        "Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;",
        "Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;"
    }
.end annotation


# static fields
.field public static q:I = 0x5

.field private static r:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$g;

.field private static s:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$f;


# instance fields
.field private a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

.field private b:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;

.field private c:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

.field private d:Landroidx/appcompat/widget/ListPopupWindow;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/TextView;

.field private g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;"
        }
    .end annotation
.end field

.field private h:I

.field private i:I

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/TextView;

.field private l:I

.field private m:Z

.field private n:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private o:Ljava/lang/String;

.field private p:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->g:Ljava/util/List;

    const/16 v0, 0x9

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    return-void
.end method

.method private A()V
    .locals 6

    .line 1
    sget v0, Les/x4;->toolbar:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/appcompat/widget/Toolbar;

    .line 2
    sget v1, Les/x4;->__picker_back:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v2, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$d;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$d;-><init>(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)V

    .line 3
    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    sget v1, Les/x4;->__picker_title:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 6
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->y()I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 8
    :goto_0
    sget v1, Les/x4;->__picker_done:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    .line 9
    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    const/4 v2, 0x1

    if-le v1, v2, :cond_4

    .line 10
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$e;-><init>(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->n:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_1

    :cond_1
    const/4 v0, 0x0

    :goto_1
    if-lez v0, :cond_2

    .line 13
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    goto :goto_2

    .line 14
    :cond_2
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 15
    :goto_2
    iget-boolean v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->m:Z

    if-eqz v3, :cond_3

    .line 16
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v2

    invoke-virtual {p0, v4, v5}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 17
    :cond_3
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v2, v1

    invoke-virtual {p0, v4, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    :cond_4
    const/16 v1, 0x8

    .line 18
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_3
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Landroidx/appcompat/widget/ListPopupWindow;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    return-object p0
.end method

.method private a(Ljava/lang/Class;Ljava/util/List;)Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "*>;",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
            ">;)",
            "Ljava/util/List;"
        }
    .end annotation

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 4
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    .line 5
    invoke-virtual {p1, v1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;Ljava/util/List;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f(Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->g:Ljava/util/List;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->p:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;

    return-object p0
.end method

.method private f(I)V
    .locals 5

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-le p1, v2, :cond_0

    const/4 v3, 0x1

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 14
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->m:Z

    if-eqz v0, :cond_1

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v4, v1

    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v4, v2

    invoke-virtual {p0, v3, v4}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 16
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v2, v1

    invoke-virtual {p0, v3, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    return-void
.end method

.method private f(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
            ">;)V"
        }
    .end annotation

    .line 4
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 5
    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    const-string v2, "SELECTED_MEDIAS"

    if-nez v1, :cond_0

    .line 6
    new-instance v1, Ljava/util/ArrayList;

    const-class v3, Lcom/esfile/screen/recorder/picture/picker/data/f;

    .line 7
    invoke-direct {p0, v3, p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a(Ljava/lang/Class;Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 8
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    goto :goto_0

    :cond_0
    const/4 v3, 0x2

    if-ne v1, v3, :cond_1

    .line 9
    new-instance v1, Ljava/util/ArrayList;

    const-class v3, Lcom/esfile/screen/recorder/picture/picker/data/c;

    .line 10
    invoke-direct {p0, v3, p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a(Ljava/lang/Class;Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 11
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    :cond_1
    :goto_0
    const/4 p1, -0x1

    .line 12
    invoke-virtual {p0, p1, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    return-void
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object p0

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    return p0
.end method

.method private x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->f()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object v0

    return-object v0
.end method

.method private y()I
    .locals 2

    .line 1
    sget v0, Les/z4;->durec_all_images:I

    .line 2
    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    if-nez v1, :cond_0

    .line 3
    sget v0, Les/z4;->durec_all_videos:I

    :cond_0
    return v0
.end method

.method private z()V
    .locals 2

    .line 1
    sget v0, Les/x4;->dir_select_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->e:Landroid/view/View;

    .line 2
    sget v1, Les/x4;->file_dir:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f:Landroid/widget/TextView;

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->y()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 4
    new-instance v0, Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;

    invoke-direct {v0, p0}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v1, -0x1

    .line 5
    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setWidth(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->e:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setAnchorView(Landroid/view/View;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->c:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setModal(Z)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    const/16 v1, 0x50

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setDropDownGravity(I)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$a;-><init>(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->e:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/View;I)V
    .locals 4

    .line 36
    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    const/4 v0, 0x2

    if-ne p1, v0, :cond_2

    .line 37
    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 38
    new-instance p1, Ljava/util/ArrayList;

    .line 39
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c()Ljava/util/List;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 40
    invoke-static {}, Lcom/esfile/screen/recorder/picture/picker/w;->a()Lcom/esfile/screen/recorder/picture/picker/w$a;

    move-result-object v0

    .line 41
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Ljava/util/ArrayList;)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 42
    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(I)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 43
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Landroid/app/Activity;)V

    goto :goto_1

    .line 44
    :cond_0
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c()Ljava/util/List;

    move-result-object v1

    invoke-direct {p1, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 45
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 46
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object v2

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->e()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    .line 47
    invoke-virtual {v3}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 48
    :cond_1
    invoke-static {}, Lcom/esfile/screen/recorder/picture/picker/w;->a()Lcom/esfile/screen/recorder/picture/picker/w$a;

    move-result-object v2

    .line 49
    invoke-virtual {v2, p1}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Ljava/util/ArrayList;)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 50
    invoke-virtual {v2, p2}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(I)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 51
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/picker/w$a;->b(I)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 52
    invoke-virtual {v2, v1}, Lcom/esfile/screen/recorder/picture/picker/w$a;->b(Ljava/util/ArrayList;)Lcom/esfile/screen/recorder/picture/picker/w$a;

    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    .line 53
    invoke-virtual {v2, p1}, Lcom/esfile/screen/recorder/picture/picker/w$a;->c(I)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 54
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;

    const/16 p1, 0x39f

    invoke-virtual {v2, p0, p1}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Landroid/app/Activity;I)V

    :cond_2
    :goto_1
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
            ">;>;)V"
        }
    .end annotation

    if-eqz p1, :cond_5

    .line 6
    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-le v0, v2, :cond_2

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d()I

    move-result v0

    .line 8
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    if-le v0, v2, :cond_0

    const/4 v4, 0x1

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    :goto_0
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 9
    iget-boolean v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->m:Z

    if-eqz v3, :cond_1

    .line 10
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v2

    invoke-virtual {p0, v4, v5}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 11
    :cond_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->k:Landroid/widget/TextView;

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v2, v1

    invoke-virtual {p0, v4, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 12
    :cond_2
    :goto_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->g:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->c:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    invoke-virtual {v0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    .line 15
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_3

    .line 16
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->d()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 20
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f:Landroid/widget/TextView;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->y()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 21
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 22
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->j:Landroid/widget/TextView;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->y()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 23
    :cond_4
    :goto_2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->v()V

    goto :goto_3

    .line 24
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->e:Landroid/view/View;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    return-void
.end method

.method public a(ILcom/esfile/screen/recorder/picture/picker/entity/MediaItem;)Z
    .locals 3

    .line 30
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    if-eqz p2, :cond_0

    .line 31
    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 32
    :cond_0
    sget-object v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->r:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$g;

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 33
    invoke-interface {v1, p1, p2}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$g;->a(ILcom/esfile/screen/recorder/picture/picker/entity/MediaItem;)Z

    move-result p1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    if-eqz p1, :cond_2

    return v2

    .line 34
    :cond_2
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f(Ljava/util/List;)V

    .line 35
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    const/4 p1, 0x1

    return p1
.end method

.method public a(Ljava/lang/String;ZLjava/util/List;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Z",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;",
            ">;)Z"
        }
    .end annotation

    .line 25
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    const-string v1, "image_edit"

    const-string v2, "edit"

    .line 26
    invoke-direct {p0, v1, v2, p2}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a(Ljava/lang/String;Ljava/lang/String;Z)V

    .line 27
    sget-object v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->s:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$f;

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 28
    invoke-interface {v1, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$f;->a(Ljava/lang/String;ZLjava/util/List;)Z

    move-result p1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    if-eqz p1, :cond_1

    return v2

    :cond_1
    const/4 p1, 0x1

    if-eqz p2, :cond_2

    const/4 p2, -0x1

    goto :goto_1

    :cond_2
    const/4 p2, 0x1

    :goto_1
    add-int/2addr v0, p2

    .line 29
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f(I)V

    return p1
.end method

.method public f(Z)V
    .locals 1

    .line 2
    sget v0, Les/x4;->__picker_cover:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    .line 3
    :goto_0
    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 p2, 0x39f

    if-ne p1, p2, :cond_3

    if-nez p3, :cond_0

    return-void

    :cond_0
    const-string p1, "pathList"

    .line 2
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->x()Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter;

    move-result-object p2

    .line 4
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a()V

    .line 5
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_1
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Ljava/lang/String;

    .line 6
    invoke-virtual {p2, p3}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    move-result-object p3

    if-eqz p3, :cond_1

    .line 7
    invoke-virtual {p2, p3}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c(Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;)V

    goto :goto_0

    .line 8
    :cond_2
    invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 9
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->d()I

    move-result p1

    .line 10
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f(I)V

    :cond_3
    return-void
.end method

.method public onBackPressed()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->b:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isVisible()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->b:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;

    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$c;-><init>(Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->a(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 3
    :cond_0
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->e:Landroid/view/View;

    if-ne p1, v0, :cond_1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->isShowing()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->dismiss()V

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;

    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-nez p1, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->v()V

    const/4 p1, 0x1

    .line 6
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->f(Z)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    invoke-virtual {p1}, Landroidx/appcompat/widget/ListPopupWindow;->show()V

    :cond_1
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    if-nez p1, :cond_0

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 4
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, -0x1

    const-string v1, "DATA_TYPE"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    if-eq p1, v0, :cond_3

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/16 v0, 0x9

    const-string v1, "MAX_COUNT"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->h:I

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    sget v0, Les/z4;->durec_media_picker_done_with_count:I

    const-string v1, "DONE_TEXT"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->l:I

    .line 7
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, 0x1

    const-string v1, "MAX_RESTRICT"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->m:Z

    .line 8
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v1, "ORIGINAL_MEDIAS"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->n:Ljava/util/List;

    .line 9
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v1, "TOOL_BAR_STRING"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->o:Ljava/lang/String;

    .line 10
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v1, "REQUEST_CODE"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    .line 11
    sget p1, Les/y4;->__picker_activity_photo_picker:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 12
    sget p1, Les/z4;->__picker_image_count:I

    .line 13
    sget v0, Les/z4;->__picker_image_one_count:I

    .line 14
    sget v1, Les/w4;->durec_dir_no_img:I

    .line 15
    iget v2, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    if-nez v2, :cond_1

    .line 16
    sget p1, Les/z4;->__picker_video_count:I

    .line 17
    sget v0, Les/z4;->__picker_video_one_count:I

    .line 18
    sget v1, Les/w4;->durec_dir_no_video:I

    :cond_1
    move v6, p1

    move v5, v0

    move v7, v1

    .line 19
    new-instance p1, Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->g:Ljava/util/List;

    move-object v2, p1

    move-object v3, p0

    invoke-direct/range {v2 .. v7}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;-><init>(Landroid/content/Context;Ljava/util/List;III)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->c:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    .line 20
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->z()V

    .line 21
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->A()V

    .line 22
    iget p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/f;->a(I)Ljava/lang/String;

    move-result-object p1

    const-string v0, "mpay"

    const-string v1, "no audio type"

    .line 23
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    .line 25
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "picker fragment:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    if-nez v1, :cond_2

    .line 27
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/f;->a(Landroid/os/Bundle;)Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    move-result-object v1

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    .line 28
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "picker fragment2:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 29
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->a(Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$b;)V

    .line 30
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$b;)V

    .line 31
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$c;)V

    .line 32
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/MediaPickerAdapter$d;)V

    .line 33
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->p:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment$c;

    .line 34
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v0

    .line 35
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;

    move-result-object v0

    sget v1, Les/x4;->container:I

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->a:Lcom/esfile/screen/recorder/picture/picker/fragment/PickerFragment;

    .line 36
    invoke-virtual {v0, v1, v2, p1}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    move-result-object p1

    .line 37
    invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I

    .line 38
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->executePendingTransactions()Z

    :cond_2
    return-void

    .line 39
    :cond_3
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "Invalid data type when enter MediaPickerActivity"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onDestroy()V

    const/4 v0, 0x0

    .line 2
    sput-object v0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->r:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$g;

    .line 3
    sput-object v0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->s:Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity$f;

    return-void
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onPause()V

    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    if-eqz p1, :cond_0

    const-string v0, "android:support:fragments"

    .line 2
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method protected onStop()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStop()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->i:I

    if-nez v0, :cond_0

    const-string v0, "\u89c6\u9891\u9009\u62e9\u9875\u9762(\u5355\u9009)"

    return-object v0

    :cond_0
    const-string v0, "\u56fe\u7247\u9009\u62e9\u9875\u9762"

    return-object v0
.end method

.method public v()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->c:Lcom/esfile/screen/recorder/picture/picker/adapter/a;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/a;->getCount()I

    move-result v0

    .line 3
    sget v1, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->q:I

    if-ge v0, v1, :cond_1

    goto :goto_0

    :cond_1
    move v0, v1

    .line 4
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;->d:Landroidx/appcompat/widget/ListPopupWindow;

    if-eqz v1, :cond_2

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_picker_item_folder_height:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v2

    mul-int v0, v0, v2

    .line 6
    invoke-virtual {v1, v0}, Landroidx/appcompat/widget/ListPopupWindow;->setHeight(I)V

    :cond_2
    return-void
.end method

.method public w()Lcom/esfile/screen/recorder/picture/picker/MediaPickerActivity;
    .locals 0

    return-object p0
.end method
